import request from '@/utils/request'

export const getCourseList = (data) => {
  return request({
    url: `/course/${data.id}`,
    mothod: 'get',
    data
  })
}

export const getCourseListByTeacher = (data) => {
  return request({
    url: `/course/teacher/${data.id}`,
    mothod: 'get',
    data
  })
}